package com.hema.auction.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hema.auction.R;
import com.hema.auction.utils.GlideUtils;

import java.util.List;

/**
 * author by john
 */

public class BigImgAdapter extends BaseQuickAdapter<String,BaseViewHolder> {

    public BigImgAdapter(@Nullable List<String> data) {
        super(R.layout.layout_big_img_item,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        ImageView ivImg= helper.getView(R.id.iv_img);
//        Glide.with(mContext).load(item).into(ivImg);
        GlideUtils.load(mContext,item,ivImg);
    }
}
